# 导包
from rest_framework import serializers
from myapp.models import *


# 用户序列器
class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


# 幻灯片序列器
class PicsSer(serializers.ModelSerializer):
    class Meta:
        model = Pics
        fields = '__all__'


# 商品序列器
class GoodsSer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'


# 分类序列器
class CategorySer(serializers.ModelSerializer):
    class Meta:
        model = Category
        fields = '__all__'


# 评论类序列器
class CommentSer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = '__all__'
